# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Corey Mwamba <contact.me@coreymwamba.co.uk>

pkgname=rtirq
pkgver=20220923
pkgrel=1
pkgdesc="Realtime IRQ thread system tuning."
arch=(any)
url="https://www.rncbc.org/archive/#rtirq"
license=(GPL2)
groups=(realtime)
depends=(bash)
backup=(etc/rtirq.conf)
source=(https://www.rncbc.org/archive/$pkgname-$pkgver.tar.gz{,.sig})
sha512sums=('6846075e8196220aabb68250f0284b77f21b5c9bfd6dd9bbea59307679111c122d2091acefa38048f96166ae903b3ed46cbba4242afabc9a18bfa97467200386'
            'SKIP')
b2sums=('ea7248afa665c2c8bfb99c42ff18d7d585f4a337c8850f5343b610a131face8b8eec4ef19901f59685793662e0e0ac95dfdddffea9951f47910dbc12bb47a459'
        'SKIP')
validpgpkeys=('0E89694D1D4F7883B98DEFA19D0514152A8E5EC4') # Rui Nuno Capela <rncbc@rncbc.org>

package() {
  cd $pkgname-$pkgver
  install -vDm 755 $pkgname.sh "$pkgdir/usr/bin/$pkgname"
  install -vDm 644 $pkgname.conf -t "$pkgdir/etc/"
  install -vDm 644 *.service -t "$pkgdir/usr/lib/systemd/system/"
}
